package com.niit.common.component;

import com.niit.common.dao.TestDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.concurrent.Callable;

public class Test {
    public static void main(String[] args) {
      ClassPathXmlApplicationContext app=
                new ClassPathXmlApplicationContext("applicationContext.xml");
        TestDao testDao= (TestDao) app.getBean("testDao");
        testDao.test();
    }
}
